package com.hontech.pastacooking.app

import android.os.Handler
import android.os.HandlerThread
import android.os.Looper
import org.greenrobot.eventbus.EventBus

private class HandlerTask(name: String) : HandlerThread(name) {

    init {
        start()
    }
}

object AppTask : Handler(Looper.getMainLooper())

object ConnTask : Handler(HandlerTask("conn-task").looper)

object NetTask : Handler(HandlerTask("net-task").looper)

val bus = EventBus.builder().logNoSubscriberMessages(true).build()


